package org.shangrila.bme.eo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.math.BigDecimal;


/**
 * The persistent class for the bme_saleout_detail database table.
 * 
 */
@Entity
@Table(name="bme_saleout_detail")
@NamedQuery(name="BmeSaleoutDetail.findAll", query="SELECT b FROM BmeSaleoutDetail b")
public class BmeSaleoutDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	private BigDecimal amount;

	@Column(name="ANNEX_FLAG")
	private int annexFlag;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME")
	private Date createTime;

	private String mdesc;

	private BigDecimal mprice;

	private BigDecimal mquantity;

	private String munit;

	private String operator;

	
	private String remarks;

	//bi-directional many-to-one association to BmeMaterial
	@ManyToOne
	@JoinColumn(name="MID")
	private BmeMaterial bmeMaterial;

	//bi-directional many-to-one association to BmeSaleout
	@ManyToOne
	@JoinColumn(name="OUT_ID")
	private BmeSaleout bmeSaleout;

	private String speci;

	@Column(name="PROCESS_QUANTITY")
	private BigDecimal processQuantity;

	@Column(name="PROCESS_SPECI")
	private String processSpeci;
	
	@Column(name="PROCESS_TECK")
	private String processTeck;

	
	public String getSpeci() {
		return speci;
	}

	public void setSpeci(String speci) {
		this.speci = speci;
	}

	public BigDecimal getProcessQuantity() {
		return processQuantity;
	}

	public void setProcessQuantity(BigDecimal processQuantity) {
		this.processQuantity = processQuantity;
	}

	public String getProcessSpeci() {
		return processSpeci;
	}

	public void setProcessSpeci(String processSpeci) {
		this.processSpeci = processSpeci;
	}

	public String getProcessTeck() {
		return processTeck;
	}

	public void setProcessTeck(String processTeck) {
		this.processTeck = processTeck;
	}
	
	public BmeSaleoutDetail() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public BigDecimal getAmount() {
		return this.amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public int getAnnexFlag() {
		return this.annexFlag;
	}

	public void setAnnexFlag(int annexFlag) {
		this.annexFlag = annexFlag;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getMdesc() {
		return this.mdesc;
	}

	public void setMdesc(String mdesc) {
		this.mdesc = mdesc;
	}

	public BigDecimal getMprice() {
		return this.mprice;
	}

	public void setMprice(BigDecimal mprice) {
		this.mprice = mprice;
	}

	public BigDecimal getMquantity() {
		return this.mquantity;
	}

	public void setMquantity(BigDecimal mquantity) {
		this.mquantity = mquantity;
	}

	public String getMunit() {
		return this.munit;
	}

	public void setMunit(String munit) {
		this.munit = munit;
	}

	public String getOperator() {
		return this.operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public BmeMaterial getBmeMaterial() {
		return this.bmeMaterial;
	}

	public void setBmeMaterial(BmeMaterial bmeMaterial) {
		this.bmeMaterial = bmeMaterial;
	}

	public BmeSaleout getBmeSaleout() {
		return this.bmeSaleout;
	}

	public void setBmeSaleout(BmeSaleout bmeSaleout) {
		this.bmeSaleout = bmeSaleout;
	}

}